<style type="text/css">
.tab{background-color: #FAFAFA; margin: 5px 8px; padding: 5px 10px; min-width:1000px; width:auto !important; width: 1000px; min-height:400px; height:auto !important; height:400px; overflow:visible;}
.tab p span {background-color: #EFEFEF; border: 1px solid #CCCCCC; cursor: pointer; margin-right: 6px; padding: 7px 8px 4px 8px;} 
.tab p span.current {background-color: #FAFAFA; border-bottom-color: #fafafa; } 
.tab p {border-bottom: 1px solid #CCCCCC; font-weight: bold; padding: 0 10px 4px; }
.tab_content {color: #4f6b72; background: #E6EAE9;}
.tab_table { width: 100%; padding: 0; margin: 0;}
.tab_first_th{color: #4f6b72; border: 1px solid #999999;letter-spacing: 2px; text-transform: uppercase; text-align: left;font-size:12px;padding: 6px 6px 6px 12px; background: #CBCBCB; } 
.tab_th{color: #4f6b72; border-left: 1px solid #999999;border-right: 1px solid #999999; border-bottom: 1px solid #999999; border-top: 1px solid #CBCBCB; letter-spacing: 2px; text-transform: uppercase; text-align: left;font-size:12px;padding: 6px 6px 6px 12px; background: #CBCBCB; } 
.tab_td_alt {font-size:12px;background: #F5FAFA; color: #797268; border-right: 1px solid #999999; border-bottom: 1px solid #999999; padding: 6px 6px 6px 12px;}
.tab_first_td {border: 1px solid #999999;background: #ffffff; font-size:12px;padding: 6px 6px 6px 12px; color: #4f6b72; }
.tab_td {border-right: 1px solid #999999; border-bottom: 1px solid #999999;background: #ffffff; font-size:12px;padding: 6px 6px 6px 12px; color: #4f6b72; }
.input{width: 200px;}
</style>
<br/>
<form action="/json?action=MANAGE_UPDATE_MEMBER_BY_ID_ACTION" method="post" id="member_frm">
<input type="hidden" id="MEMBER_ID" name="MEMBER_ID" value="0"/>
<div class="tab">
	<p>
		<span id="tab1" class="tab_span">基本信息</span>
	</p>
	<div class="tab1">
		<br/>
		<table class="tab_table" cellspacing="0" align="center">
			<tr> 
				<th class="tab_first_th" colspan="4">订单信息</th>
			</tr>
			<tr> 
				<th class="tab_th" width="15%">订单号</th> 
				<td class="tab_td" width="35%"><span id="FORM_ORDER_ID"></span></td>
				<th class="tab_th" width="15%">下单日期</th>
				<td class="tab_td" width="35%"><span id="ORDER_DATE"></span></td>
			</tr>
			<tr>
				<th class="tab_th">订单状态</th>
				<td class="tab_td"><span id="STATUS"></span></td>
				<th class="tab_th">送货方式</th>
				<td class="tab_td">
					<select id="DELIVER_METHOD" name="DELIVER_METHOD" class="input">
						<option value="1">快递</option>
						<option value="2">EMS</option>
					</select>
				</td>
			</tr>
			<tr>
				<th class="tab_th">支付方式</th>
				<td class="tab_td">
					<select id="PAY_METHOD" name="PAY_METHOD" class="input">
						<option value="3">货到付款</option>
					</select>
				</td>
				<th class="tab_th">配送时间</th>
				<td class="tab_td">
					<select id="DELIVER_TIME" name="DELIVER_TIME" class="input">
						<option value="1">时间不限</option>
						<option value="2">周一到周五</option>
						<option value="3">周六日及公众节假日</option>
					</select>
				</td>
			</tr>
			<tr>
				<th class="tab_th">订单金额</th>
				<td class="tab_td"><span id="PAYMENT"></span></td>
				<th class="tab_th">订单积分</th>
				<td class="tab_td"><span id="ORDER_POINTS"></span></td>
			</tr>
			<tr>
				<th class="tab_th">客户留言</th>
				<td class="tab_td" colspan="3"><span id="MESSAGE"></span></td>
			</tr>
			<tr>
				<th class="tab_th" colspan="4">收货人信息</th>
			</tr>
			<tr>
				<th class="tab_th">收货人</th>
				<td class="tab_td"><input type="text" id="CONSIGNEE" name="CONSIGNEE" class="input"/></td>
				<th class="tab_th">手机号码</th>
				<td class="tab_td"><input type="text" id="MOBILE" name="MOBILE" class="input"/></td>
			</tr>
			<tr>
				<th class="tab_th">邮政编码</th>
				<td class="tab_td"><input type="text" id="ZIP_CODE" name="ZIP_CODE" class="input"/></td>
				<th class="tab_th">家庭固话</th>
				<td class="tab_td"><input type="text" id="TELEPHONE" name="TELEPHONE" class="input"/></td>
			</tr>
			<tr>
				<th class="tab_th">详细地址</th>
				<td class="tab_td" colspan="3"><input type="text" id="FINAL_ADDRESS" name="FINAL_ADDRESS" class="input" style="width: 380px;"/></td>
			</tr>
		</table>
	</div>
	<div class="tab2">
		<br/>
		注：商品数量为0，点击保存后将删除对应商品
		<br/><br/>
		<table class="tab_table" cellspacing="0" align="center">
			<tr> 
				<th class="tab_first_th" width="15%">商品编号</th>
				<th class="tab_first_th" width="45%">商品名称</th>
				<th class="tab_first_th" width="10%">会员价格</th>
				<th class="tab_first_th" width="10%">商品数量</th>
				<th class="tab_first_th" width="10%">商品积分</th>
				<th class="tab_first_th" width="10%">单品总价</th>
			</tr>
			<tbody id="plist"></tbody>
		</table>
	</div>
</div>
</form>
<div style="text-align: center; margin: 20px 0px;">
	<button id="order_u" class="submit_btn" onclick="subFrm();">保存</button>&nbsp;&nbsp;
	<button id="order_c" class="cancel_btn" onclick="$.zxxbox.hide();">取消</button>
</div>
<script type="text/javascript">
<!--
$(document).ready(function() {
	$(".tab_span:first").addClass("current");
	$(".tab div:not(:first)").hide();
	$(".tab_span").click(function() { 
		$(".tab_span").removeClass("current");
		$(this).addClass("current"); 
		$(".tab div").hide(); 
		$("." + $(this).attr("id")).fadeIn('fast');
	});
});

function subFrm(){
	var options = {
	    dataType: 'json',
    	iframe:	false,
	    success: function(data) {
	    	if(data.success){
	    		getOrderList();
	    		$.zxxbox.msg("订单修改成功。", msg_second, 'success');
	      	}else{
	      		$.zxxbox.msg(data.errors.errmsg, msg_second, 'error');
	      	}
	   	}
	};
	$.ajaxSetup({contentType:'application/x-www-form-urlencoded;charset=utf-8'});
    $('#order_frm').ajaxSubmit(options);
}

//-->
</script>